package com.dream.web;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.dubbo.config.annotation.Reference;
import com.dream.bean.User;
import com.dream.service.UserService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * <p>
 * 用户表 前端控制器
 * </p>
 *
 * @author bruce
 * @since 2018-12-04
 */
@Controller
@RequestMapping("/user")
public class UserController {
	
	@Reference
	UserService us;
	
	@RequestMapping("/getByid")
	@ResponseBody
	public User getUsers() {
       return  us.selectById(10);
	}

}

